package com.haihui.platform.service.impl.sys;

import org.springframework.stereotype.Service;

import com.haihui.platform.dao.sys.SysDictionaryDao;
import com.haihui.platform.entity.SysDictionary;
import com.haihui.platform.service.sys.SysDictionaryService;

import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

@Service
public class SysDictionaryServiceImpl implements SysDictionaryService{

	@Autowired
	private SysDictionaryDao sysDictionaryDao;

	public List<SysDictionary> list(){
		return sysDictionaryDao.list();
	}

	public Integer add(SysDictionary sysDictionary){
		return sysDictionaryDao.add(sysDictionary);
	}

	public Integer update(SysDictionary sysDictionary){
		return sysDictionaryDao.update(sysDictionary);
	}

	@Override
	public List<SysDictionary> dic(SysDictionary dic) {
		return sysDictionaryDao.dic(dic);
	}

	@Override
	public Integer delete(SysDictionary dic) {
		return sysDictionaryDao.delete(dic);
	}

}